
<h1>XML Field-Finder</h1>
<br>

<%= form_tag :action =>  "showsubfield" do %>

<p>
<%= label :subfield, "Field (e.g. rarid)" %>
<%= text_field_tag :subfield, @subfield%>
<%= submit_tag "search" %>
<% end %>
</p>

<% if @countno %>
<%= @tag%>$<%= @code%> has <%= @countno %> entries.

<br>
<br>
Content: <br>
<% end %> 
<%#= @nodes %>
<% if @nodes %>
  <% @nodes.each do |node| %>
    <%= node[1].to_s + "---> " %>
    <%= link_to node[0].to_s, "/mozarteum/convert?record[rismid="+node[0].to_s %><br>
<% end %>
<% end %>
